// 能效分析 模块
import { SystemSpace } from "@/api/interface/device"
import { ResPage } from "@/api/interface/index"
import http from "@/api"

// 分页查询故障数据
export const stopPage = (params: SystemSpace.stopPageQuery) => {
  return http.post<ResPage<SystemSpace.stopPage>>("/device/stop/page", params)
}

// 分页查询故障数据
export const removeStop = (params: { id: number }) => {
  return http.post<any>("device/stop/remove", params)
}
// 保存故障数据
export const saveStop = (params: SystemSpace.SaveStopData) => {
  return http.post<any>("device/stop/add", params)
}
// 保存故障数据
export const deviceList = (params: SystemSpace.DeviceList) => {
  return http.get<any>("device/list", params)
}
// 导出停机数据
export const exportStopData = (params: SystemSpace.StopExportQuery) => {
  return http.download("/device/stop/export", params)
}
